# 学生传入与返回对象模型
from pydantic import BaseModel

class StudentReqSchema(BaseModel):
    sno: str
    name: str
    grade: str
    email: str

class StudentUpdateReqSchema(BaseModel):
    name: str|None=None
    email: str|None=None

class StudentRespSchema(BaseModel):
    id: int
    sno: str
    name: str
    grade: str
    email: str